#include "cutom_cpu_widget.h"
#include "cutom_cpu_widgetplugin.h"

#include <QtPlugin>

cutom_cpu_widgetPlugin::cutom_cpu_widgetPlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void cutom_cpu_widgetPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool cutom_cpu_widgetPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *cutom_cpu_widgetPlugin::createWidget(QWidget *parent)
{
    return new cutom_cpu_widget(parent);
}

QString cutom_cpu_widgetPlugin::name() const
{
    return QLatin1String("cutom_cpu_widget");
}

QString cutom_cpu_widgetPlugin::group() const
{
    return QLatin1String("Example Custom Widgets");
}

QIcon cutom_cpu_widgetPlugin::icon() const
{
    return QIcon();
}

QString cutom_cpu_widgetPlugin::toolTip() const
{
    return QLatin1String("Custom CPU Widget");
}

QString cutom_cpu_widgetPlugin::whatsThis() const
{
    return QLatin1String("This is a CPU USED Custom Widget");
}

bool cutom_cpu_widgetPlugin::isContainer() const
{
    return false;
}

QString cutom_cpu_widgetPlugin::domXml() const
{
    return QLatin1String("<widget class=\"cutom_cpu_widget\" name=\"cutom_cpu_widget\">\n</widget>\n");
}

QString cutom_cpu_widgetPlugin::includeFile() const
{
    return QLatin1String("cutom_cpu_widget.h");
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(cutom_cpu_widgetplugin, cutom_cpu_widgetPlugin)
#endif // QT_VERSION < 0x050000
